package com.sxz.sbs.module.client.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;
import com.sxz.sbs.module.client.bean.CallRecordsBean;
import com.sxz.sbs.module.client.bean.DealRecordBean;

import java.util.List;

/**
 * 交易记录adapter
 * @author hp
 */

public class DealRecordAdapter extends BaseQuickAdapter<DealRecordBean.ListBean,BaseViewHolder>{


    public DealRecordAdapter(@Nullable List<DealRecordBean.ListBean> data) {
        super(R.layout.item_dealrecord,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DealRecordBean.ListBean item) {
        helper.setText(R.id.tv_stall_num,item.getNumber());
        helper.setText(R.id.tv_plot,item.getParkingName());
        helper.setText(R.id.tv_stall_adress,item.getAddress());

    }
}
